import request from '@/utils/request'

export function getList(data = {}) {
  return request({
    url: '/freedomtypelist',
    method: 'post',
    data: {
      page: 1,
      list_row: 1000,
      ...data,
    },
  })
}

export function doAdd(data) {
  return request({
    url: '/freedomtypeadd',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/freedomtypeedit',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/freedomtypedelete',
    method: 'post',
    data,
  })
}
